import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import {App as AntdApp, ConfigProvider, theme} from 'antd';
import locale from 'antd/locale/zh_CN';
import 'dayjs/locale/zh-cn';
import {Provider} from "react-redux";
import store from "./storage/redux/store";

const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);
root.render(
  <React.Fragment>
    <ConfigProvider
        locale={locale}
        theme={{
            algorithm: theme.darkAlgorithm,
            token: {
                colorBgLayout: 'no'
            }
        }}
    >
        <Provider store={store}>
        <AntdApp>
            <App />
        </AntdApp>
        </Provider>
    </ConfigProvider>
  </React.Fragment>
);
